package com.cuif.ioc.autoWire;

import org.springframework.beans.factory.annotation.Autowired;

import com.cuif.pojo.Supervisor;
import com.cuif.pojo.User;

public class AutoWire {
	
	@Autowired
	private User user;
	private Supervisor supervisor;
	
	public AutoWire(){}
	
	public AutoWire(User user, Supervisor supervisor) {
		super();
		this.user = user;
		this.supervisor = supervisor;
	}

	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public Supervisor getSupervisor() {
		return supervisor;
	}
	
	@Autowired
	public void setSupervisor(Supervisor supervisor) {
		this.supervisor = supervisor;
	}

}
